package io.renren.service;

import io.renren.common.service.CrudService;
import io.renren.common.utils.Result;
import io.renren.dto.StockOrderDTO;
import io.renren.dto.StockOrdermxDTO;
import io.renren.entity.StockOrdermxEntity;

import java.util.List;

/**
 * 食材采购明细表
 *
 * @author 翟文闯 619556390@QQ.com
 * @since 1.0.0 2019-11-22
 */
public interface StockOrdermxService extends CrudService<StockOrdermxEntity, StockOrdermxDTO> {
     void updateUnitPrice(StockOrdermxDTO dto);

     Result updatePhoto(StockOrdermxDTO dto);
     List<StockOrdermxDTO> selecSupplierOrder1(long id,long ids);
     List<StockOrdermxDTO> detail(long orderId,long supplierId);
     List<StockOrdermxDTO> gyss(long id);

     void deleteOrder(Long id);

     //根据时间 判断食材订单数量，根据订单查询商品
     StockOrdermxDTO getOrderNum(String bgeinDate,String endDate,long supplierId);
     //所有订单详情
     List<StockOrdermxDTO> getOrderMx(String bgeinDate,String endDate,long supplierId);

     void updateOrder2(long orderId,long foodId,float purchaseNum);
     void delectOrder(long orderId,long foodId);

}